import { createRouter, createWebHistory } from 'vue-router'
import NavigateBar from '@/components/base/NavigateBar.vue'


const router = createRouter({
    history: createWebHistory(import.meta.env.BASE_URL),
    routes: [
        {
            path: '/',
            name: 'index',
            // route level code-splitting
            // this generates a separate chunk (About.[hash].js) for this route
            // which is lazy-loaded when the route is visited.
            component: () => import('../views/LoginView.vue')
        },
        {
            path: '/login',
            name: 'login',
            // route level code-splitting
            // this generates a separate chunk (About.[hash].js) for this route
            // which is lazy-loaded when the route is visited.
            component: () => import('../views/LoginView.vue')
        },
        {
            path: '/nav',
            name: 'nav',
            component: NavigateBar
        },
        {
            path: '/chatgpt',
            name: 'chatgpt',
            component: () => import('@/views/gpt/GPTView.vue')
        },
        {
            path:'/pay',
            name:'pay',
            component:()=>import("../views/pay/payment.vue")
        },

    ]
})

export default router
